<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="../css/common.css" />
<script src="../js/common/jquery.js"></script>
<script src="../js/common/drag.js"></script>
<script src="../js/common/angular.min.js"></script>
<script type="text/javascript" src="../js/common/common.js"></script>
<script type="text/javascript" src="../js/directive/ng-blur.js"></script>
</head>
<body ng-app="myApp">

<div class="dqwz">
    <span>当前位置：</span>
    <span>ng-blur</span>
</div>

<section>
    <div ng-controller="myCtrl">
        <h3>【失去焦点事件】</h3>
        <input type="text" name="" ng-blur="counted()">
        <h1>执行次数{{count}}</h1>
        <!-- 查看源码开始 -->
        <div class="htmlCode">
            <span>【html源码】</span>
            <xmp ng-non-bindable>
<input type="text" name="" ng-blur="counted()">
<h1>执行次数{{count}}</h1>
            </xmp>
            <span>【js源码】</span>
            <xmp>
app.controller('myCtrl',function($scope){
    $scope.count = 0;
    $scope.counted = function(){
        $scope.count = $scope.count+1;
    }
})
            </xmp>
            <span class="close"><a href="javascript:;">关闭</a></span>
        </div>
        <div class="viewCode">
            <span><a href="javascript:;"> >>查看源码</a></span>
        </div>
        <!-- 查看源码结束 -->
    </div>
</section>

<div class="mask_layer">
</div>

</body>
</html>